package edu.sctu.jarime.may.subway.util;

import edu.sctu.jarime.may.subway.appbean.PeopleAppbean;

/**
 * Created by user19 on 2015/6/2.
 */
public class PeopleBaoDeth {

    String dangerous ="汽油，柴油，刀，火炮，火柴，枪械";


    private PeopleAppbean peopleappbean;

    public PeopleBaoDeth(PeopleAppbean peopleappbean){

        this.peopleappbean = peopleappbean;
    }

    public Boolean jiancha_water(){
        boolean  is_dangerous = false;
        if (peopleappbean.isHave_water()) {
            if (dangerous.contains(peopleappbean.getWater_name())) {
                is_dangerous = true;
            } else {
                is_dangerous = false;
            }
        }
        return is_dangerous;
    }



    public Boolean jiancha_bao(){
        boolean is_dangerousbao = false;
        if (peopleappbean.isHave_bao()) {
            if (dangerous.contains(peopleappbean.getBao_name())) {
                is_dangerousbao = true;

            } else {
                is_dangerousbao = false;

            }
        }
        return is_dangerousbao;
    }
}
